package com.yx.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Classname ViewController
 * @Date 2021/07/13 19:05
 * @Author by yx
 * @Description TODO:
 */
@Controller
public class ViewController {

    @GetMapping("/{page}.html")
    public String toPage(@PathVariable String page){
        return page;
    }
}
